package com.leyou.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.dto.PageDTO;
import com.leyou.dto.SpuDTO;
import com.leyou.pojo.Brand;
import com.leyou.pojo.Spu;

import java.util.List;
import java.util.Map;

/**
 * @author jshstart
 * @creat 2020-12-09 17:20
 */
public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> querySpuByPage(Long brandId, Long categoryId, Long id, Integer page, Integer rows, Boolean saleable);

    void addGood(SpuDTO spuDTO);

    void updateSaleableBySpuId(Long id, Boolean saleable);

     SpuDTO queryAllBySpuId(Long id);

    void updateGood(SpuDTO spuDTO);


}
